package com.xiaoyu.izf.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class GetDataTask {

    @Scheduled(cron="0 0/2 * * * ?")
    public void hourGet(){
        //getDataFromMinexmrService.get();
        //getDataFromNanopoolService.get();
    }

    @Scheduled(cron="0 0 0/2 * * ?")
    public void timeSentGet(){
        //getDataFromMinexmrService.timeSentGet();
        //getDataFromNanopoolService.paymentsGet();
    }
}
